package com.zwr.sheller.core.common;

/**
 * @Author LSY
 * @Date 2022/1/5 10:00
 * @Version 1.0
 **/
public enum  LSYExceptionCode {
    UNKNOWN_EXCEPTION("5000", "未知异常"),
    BAD_PHONE("5001", "不合法的或为空的手机号"),
    DUPLICATE_SELLER_PHONE("5002", "该管理员手机号已注册"),
    DUPLICATE_MERCHANT_PHONE("5003", "该商户手机号已注册"),
    DUPLICATE_STORE_PHONE("5004", "该店铺手机号已注册"),
    WRONG_PHONE("5005", "错误的手机号"),
    VALIDATE_FAILED("5006", "校验失败"),
    PICTURE_NOT_EXIST("5007", "图片不存在"),
    PICTURE_UPLOAD_FAILED("5008", "图片上传失败"),
    TOO_MANY_PICTURE("5009", "图片过多"),
    NO_REMARK("5010", "还没有评论哦")
    ;

    private String code;
    private String message;

    LSYExceptionCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
